$def with (comments,i,yeshu)
<head>
	        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
			<title>Python留言本</title>
		    <link rel="stylesheet" href="./static/base.css" media="all"/>
</head>
<html>
	<body>
		 <form method="post" action="/guestbook">
			 <p>
			 用户名:<input type="text" name="author" /><br />
			 内  容:<textarea type="text" name="content" cols="100" rows="8" style="width:610px;height:200px;" ></textarea><br />
			 <input type="submit" value="发表" /></p>
		 </form>
		<div align="left">
		他们说:共$i条
        $for ye in range(1,yeshu+1):
		    <a href="/guestbook?page=$ye">$ye</a>
	   </div>
		<ul>
		<div class="reply-doc">
		$for comment in comments:
		    <div class="bg-img-green">
				$comment.c_time $comment.author 说:
			</div> 
			<p>
			$comment.content
			</p>
		</div>
	    </ul>
	</body>
</html>

